package com.unidbadmin.view;

import java.awt.Dimension;
import java.awt.Toolkit;

import javax.swing.JFrame;
import javax.swing.SwingUtilities;

/**
 * Main Window of UniDbAdmin
 *
 */
public class MainWindow extends JFrame{

	private Dimension dimension;
	
	private MainWindow(){
		super("UniDbAdmin");
		init();
	}
	
	private void init(){
		dimension = Toolkit.getDefaultToolkit().getScreenSize();
		setLocation(40, 40);
		setSize(dimension.width-100, dimension.height-100);
		setDefaultCloseOperation(EXIT_ON_CLOSE);
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			@Override
			public void run() {
				new MainWindow().setVisible(true);
			}
		});
	}

}
